-
Notifications
You must be signed in to change notification settings - Fork 187
Refactor DPIUtil:autoScaleImageData for better design #2048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor DPIUtil:autoScaleImageData for better design #2048
Conversation
ff48400 to
6ff17bd
Compare
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
Outdated
Show resolved
Hide resolved
6ff17bd to
bce0582
Compare
This commit contributes to moving the logic for scaling the ImageData using GC from DPIUtil to Image for each platform and DPIUtil calls the platform specific code from the method DPIUtil:autoScaleImageData. contributes to eclipse-platform#62 and eclipse-platform#127
bce0582 to
215cbfd
Compare
|
Version increment check is failing for infrastructure reasons and no further version bump is required here. |
|
Sorry for joining this discussion (too) late, but I think adding more 'internal' methods to a public API class, especially such an important one like Image, even if they are marked as In this case I think it would be better to add it to a platform-specific util class. |
Sounds good to me 👍 So it would basically become an internal utility class for everything related to OS-specific image? |
This PR contributes to refactoring the logic for scaling the ImageData using GC from DPIUtil to Image for each platform, where it belongs better and DPIUtil calls the platform specific code from the method DPIUtil:autoScaleImageData.
contributes to #62 and #127